package com.fastbee.oss.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.fastbee.common.annotation.Excel;
import com.fastbee.common.core.domain.BaseEntity;

/**
 * 文件存储配置对象 oss_config
 *
 * @author zhuangpeng.li
 * @date 2023-03-30
 */
@ApiModel(value = "OssConfig", description = "文件存储配置对象 oss_config")
public class OssConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @ApiModelProperty("id")
    private Integer id;

    /** 使能标志 */
    @ApiModelProperty("使能标志")
    @Excel(name = "使能标志")
    private String enable;

    /** 访问使能标志 */
    @ApiModelProperty("访问使能标志")
    @Excel(name = "访问使能标志")
    private String enableAccess;

    /** 存储平台类型 */
    @ApiModelProperty("存储平台类型")
    @Excel(name = "存储平台类型")
    private Integer platformType;

    /** 存储平台标识 */
    @ApiModelProperty("存储平台标识")
    @Excel(name = "存储平台标识")
    private String platform;

    /** 访问密钥 */
    @ApiModelProperty("访问密钥")
    @Excel(name = "访问密钥")
    private String accessKey;

    /** 密钥 */
    @ApiModelProperty("密钥")
    @Excel(name = "密钥")
    private String secretKey;

    /** 存仓库所在地域(end-point) */
    @ApiModelProperty("存仓库所在地域(end-point)")
    @Excel(name = "存仓库所在地域(end-point)")
    private String region;

    /** 桶名 */
    @ApiModelProperty("桶名")
    @Excel(name = "桶名")
    private String bucketName;

    /** 访问域名，注意“/”结尾 */
    @ApiModelProperty("访问域名，注意“/”结尾")
    @Excel(name = "访问域名，注意“/”结尾")
    private String domain;

    /** 基础路径 */
    @ApiModelProperty("基础路径")
    @Excel(name = "基础路径")
    private String basePath;

    /** 删除标志（0代表存在 2代表删除） */
    @ApiModelProperty("删除标志")
    private String delFlag;

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setEnable(String enable)
    {
        this.enable = enable;
    }

    public String getEnable()
    {
        return enable;
    }
    public void setEnableAccess(String enableAccess)
    {
        this.enableAccess = enableAccess;
    }

    public String getEnableAccess()
    {
        return enableAccess;
    }
    public void setPlatformType(Integer platformType)
    {
        this.platformType = platformType;
    }

    public Integer getPlatformType()
    {
        return platformType;
    }
    public void setPlatform(String platform)
    {
        this.platform = platform;
    }

    public String getPlatform()
    {
        return platform;
    }
    public void setAccessKey(String accessKey)
    {
        this.accessKey = accessKey;
    }

    public String getAccessKey()
    {
        return accessKey;
    }
    public void setSecretKey(String secretKey)
    {
        this.secretKey = secretKey;
    }

    public String getSecretKey()
    {
        return secretKey;
    }
    public void setRegion(String region)
    {
        this.region = region;
    }

    public String getRegion()
    {
        return region;
    }
    public void setBucketName(String bucketName)
    {
        this.bucketName = bucketName;
    }

    public String getBucketName()
    {
        return bucketName;
    }
    public void setDomain(String domain)
    {
        this.domain = domain;
    }

    public String getDomain()
    {
        return domain;
    }
    public void setBasePath(String basePath)
    {
        this.basePath = basePath;
    }

    public String getBasePath()
    {
        return basePath;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("enable", getEnable())
                .append("enableAccess", getEnableAccess())
                .append("platformType", getPlatformType())
                .append("platform", getPlatform())
                .append("accessKey", getAccessKey())
                .append("secretKey", getSecretKey())
                .append("region", getRegion())
                .append("bucketName", getBucketName())
                .append("domain", getDomain())
                .append("basePath", getBasePath())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
